// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'


import "./css/all.css"
//引入element-ui对象
import  ElementUI from "element-ui"
//引入element-ui样式
import  "element-ui/lib/theme-chalk/index.css"
//引入axios
import axios from "axios";
//设置网络请求的url地址
axios.defaults.baseURL = "http://localhost:8888"
//将axios赋值Vue对象
Vue.prototype.$http = axios
//将elementUI放入到Vue对象中
Vue.use(ElementUI)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
